import request from './request';

// 获取所有城市的数据
export async function getCitys() {
    let data = await request.get('/city.php');
    return data;
}

// 根据城市名称获取数据
export async function  getWeather (options){
    let data = await request.get('/weather.php',{
        params : options
    });
    return data;
}